<?php 
	$uniqId = $this->fieldArrName. '_' .$this->fieldName;
?>
<tr class="single_field_block field_block_<?=$this->fieldName;?>">
	<td class="field-title">
<?=$this->Style()->IncludeStyleFile(array(
											'js' => 'ckfinder',
									));?>	
	<script type="text/javascript">
			function SetFileField_<?=$uniqId;?>( fileUrl )
			{
			  $('#filef_<?=$uniqId;?>').val(fileUrl);
			}

			$(document).ready(
			  function()
			  {
				$("#button_<?=$uniqId;?>").click(
					function(e)
					{
						CKFinder.Popup('<?=_FILEMANAGER_URL;?>', 620, 450, SetFileField_<?=$uniqId;?>, 'Files');
					}
				);
			  }
			)
		</script> 
		<label class="field_title"><?=$this->params['title'];?></label>
		<div class="field-comment"><?=$this->params['comment'];?></div>		
	</td>
	<td class="field-place">
		<a href="#" class="close delfieldbtn delfieldbtn_<?=$this->fieldName;?>">&nbsp;</a>
		<input type="text" name="<?=$this->fieldArrName;?>[<?=$this->fieldName;?>]"
			id="filef_<?=$uniqId;?>"
			value="<?=htmlspecialchars($this->data['file']);?>" width="150"
			readonly>&nbsp;<input type="button" id="button_<?=$uniqId;?>"
			value="Выбрать" class="bt" />
		<input type="hidden" name="single_field_name" value="<?=htmlspecialchars($this->fieldName);?>">
	</td>
</tr>